import http from '../util/request.js'

export default {
    // 发送邮箱验证码
    sendEmailCode: (email) => {
        return http({
            url: '/register/sendEmailCode',
            method: 'POST',
            data: { email: email },
            headers: {
                'Content-Type': 'application/json'
            }
        });
    },

    // 游客注册
    registerVisitor: (userData) => {
        return http({
            url: '/register/visitor',
            method: 'POST',
            data: userData,
            headers: {
                'Content-Type': 'application/json'
            }
        });
    },

    // 地陪注册
    registerGuide: (userData) => {
        return http({
            url: '/register/guide',
            method: 'POST',
            data: userData,
            headers: {
                'Content-Type': 'application/json'
            }
        });
    }
}